<a href="<%=root_url%>"><img src="/images/logo.png" alt="DZone" class="floatleft" /></a>

<div id="right-side">
  <%- if current_user %>
  <small><font color="white">Welcome <%= current_user.email%></font>&nbsp;</small>
    <%= link_to "Add Document", new_document_path%>&nbsp;
    <%= link_to "Edit Profile", edit_user_path(current_user) %>&nbsp;
    <%= link_to "Logout", logout_path %>&nbsp;&nbsp;
  <%- else %>
    <%= link_to "Register", new_user_path %>&nbsp;
    <%= link_to "Login", login_path %>&nbsp;&nbsp;
<%- end %>
  <form id="main-search" action="search">
    <label for="search-field" id="search-field-label">Search</label>
    <input type="text" tabindex="1" maxlength="255" id="search-field"/>
    <input type="image" alt="Search" value="Search" src="/images/search.png" id="search-button"/>
  </form>
</div>

